export default {
    data() {
        return {
            //设置默认的分享参数
            wxshare: {
                title: '小程序分享',
                path: '/pages/tabar/index',
                imageUrl: '',
                desc: '',
                content: ''
            }
        }
    },
    onShareAppMessage(res) {
        return {
            title: this.wxshare.title,
            path: this.wxshare.path,
            imageUrl: this.wxshare.imageUrl,
            desc: this.wxshare.desc,
            content: this.wxshare.content,
            success(res) {
                uni.showToast({
                    title: '分享成功'
                })
            },
            fail(res) {
                uni.showToast({
                    title: '分享失败',
                    icon: 'none'
                })
            }
        }
    },
    onShareTimeline() {},
}
